dataSource {}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}

// environment specific settings
environments {
    test {
        dataSource {
            dbCreate = "none" // one of 'create', 'create-drop','update'
            url = "jdbc:mysql://proy4p.dyndns.org/seminarioi"
			hibernate.dialect="org.hibernate.dialect.MySQL5InnoDBDialect"
			pooled = true
			driverClassName = "com.mysql.jdbc.Driver"
			username = "seminario"
			password = "seminario2010"
        }
    }
    stage {
        dataSource {
            dbCreate = "create-drop"
            url = "jdbc:hsqldb:mem:testDb"
			pooled = true
			driverClassName = "org.hsqldb.jdbcDriver"
			username = "sa"
			password = ""
        }
    }

	development {
		dataSource {
			dbCreate = "create-drop"
			url = "jdbc:mysql://localhost/seminarioi"
			pooled = true
			driverClassName = "com.mysql.jdbc.Driver"
			username = "root"
			password = ""
		}
	}
    production {
        dataSource {
            dbCreate = "update"
            url = "jdbc:hsqldb:file:prodDb;shutdown=true"
        }
    }
}
